<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/2
 * Time: 12:51
 */


require_once('../../vendor/autoload.php');

Logger::configure(array(
    'rootLogger' => array(
        'appenders' => array('default'),
    ),
    'appenders' => array(
        'default' => array(
            'class' => 'LoggerAppenderFile',
            'layout' => array(
                'class' => 'LoggerLayoutSimple'
            ),
            'params' => array(
                'file' => './my.log',
                'append' => true
            )
        )
    )
));
$logger = Logger::getLogger("transfer");

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'http://local.qianbao22.com/api/v1/currency/transfer', ['form_params' =>[
    'smaToken'=>'cd8fa908ede721a75d1f72cef4cf2e48',
    'currency_id'=>'21',
    'number'=>'100',
    'account'=>'18223094908',
    'payPassword'=>'123456',
]]);

$logger->info(json_encode($response->getBody()));
echo 11;